package com.xdf.xzymanagementsystem.entity;

import lombok.Builder;
import lombok.Data;
import java.io.Serializable;
import lombok.experimental.Tolerate;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;

@Data
@Builder
public class QcMain implements Serializable,Cloneable {
    private Integer id;//
    private String billCode;//单据编号
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private java.util.Date billDate;//单据日期
    private String clientSid;//客户编号=jc_contactcompany.ct_code
    private String clientName;//客户名称，次级缓存，以外键关联到的jc_contactcompany为准
    private String productCode;//存货编码
    private String productName;//存货名称
    private String defectTitle;//不良标题=jc_simple.category=不良标题
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private java.util.Date deliveryDate;//出货日期
    private BigDecimal defectQty;//不良数量
    private BigDecimal deliveryQty;//出货数量
    private String dealWith;//处理=jc_simple.category=处置
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private java.util.Date discoveryDate;//发现时间
    private String discoveryPeople;//发现人
    private String discoveryAddress;//发现地址
    private String issuer;//发行者
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private java.util.Date issuerDate;//发行日期
    private String orderCode;//订单号
    private String planCode;//计划单号
    private String deliveryCode;//送货单据编号
    private String auditor;//审核人
    private String remark;//备注
    private Integer state;//-1删除，0作废，1有效，2审核
    private Integer seq;//排序序号
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private java.util.Date createTime;//创建时间，DB自动填充
    private String createUser;//制单人
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private java.util.Date lastUpdate;//最后一次修改时间
    private String lastUser;//最后一次修改人

    private static final long serialVersionUID = 1L;

    @Override
    public Object clone() throws CloneNotSupportedException {
            return super.clone();
    }

    @Tolerate
    public QcMain() { }
    //=================以上是自动生成的代码，自定义代码请写在下面==================
}